/* 基础样式保持与你的原始设置一致 */
body {
    padding: 0%;
    margin-top: 0%;
    margin-bottom: 0%;
    margin-left: 1%;
    margin-right: 1%;
    text-align: justify;
    letter-spacing: 1px; /* 保留你的字间距设置 */
    background-color: transparent !important; /* 确保不覆盖QML背景 */
}

div {
    margin: 0px;
    padding: 0px;
    text-align: justify;
    background-color: transparent !important;
}

/* 段落缩进恢复为你原始的40px，并强化优先级 */
p {
    text-align: justify !important;
    text-indent: 40px !important; /* 恢复你习惯的固定像素缩进 */
    line-height: 35px !important; /* 保留你设置的行高 */
    margin: 0.5em 0 !important; /* 轻微增加段落间距，确保分离 */
}

img {
    margin: 0px auto !important;
    padding: 0px;
    line-height: 35px;
    border-radius: 5px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: none !important;
}

.cover {
    width: 100% !important;
    padding: 0px;
    margin: 0 auto !important;
}

.center {
    text-align: center !important;
    margin-left: 0% !important;
    margin-right: 0% !important;
}

.left {
    text-align: left !important; /* 修正原始设置中的居中问题 */
    margin-left: 0% !important;
    margin-right: 0% !important;
}

.right {
    text-align: right !important;
    margin-left: 0% !important;
    margin-right: 0% !important;
}

.quote {
    margin-top: 0% !important;
    margin-bottom: 0% !important;
    margin-left: 1em !important;
    margin-right: 1em !important;
    text-align: justify !important;
}

/* 标题样式保留你的原始设置，增加优先级 */
h1 {
    line-height: 130% !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: xx-large !important;
    margin: 1.5em 0 !important;
}

h2 {
    line-height: 130% !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: x-large !important;
    margin: 1.5em 0 !important;
}

h4 {
    line-height: 130% !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: medium !important;
    margin: 1.5em 0 !important;
}

h5 {
    line-height: 130% !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: small !important;
    margin: 1.5em 0 !important;
}

h6 {
    line-height: 130% !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: x-small !important;
    margin: 1.5em 0 !important;
}

/* 补充h3样式，保持一致性 */
h3 {
    line-height: 130% !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: large !important;
    margin: 1.5em 0 !important;
}

.xf {
    margin: 5% 0 5% 0 !important;
    padding: 0.5em !important;
    text-align: left !important;
    border: 1px red dotted !important;
}

.dsx {
    font-size: 1.1em !important;
    margin: -0.45em !important;
    padding: 0.15em !important;
    color: white !important;
    text-align: center !important;
    background-color: #9fc000 !important;
}

/* 补充列表样式，确保不影响段落缩进 */
ul, ol {
    margin: 1em 0 1em 2em !important;
    padding: 0 !important;
}

li {
    line-height: 35px !important;
    margin: 0.5em 0 !important;
}
